//map.js
export function MP() {
    return new Promise(function (resolve, reject) {
      var script = document.createElement("script");
      script.type = "text/javascript";
      script.src = "https://api.map.baidu.com/api?v=2.0&ak=1yDCWRf7UQyQotC400oXel0WISzAGDk7&callback=init";
      script.onerror = reject;
      document.head.appendChild(script);
    })
}